<div class="box-tools" style="top:10px;">
  <form class="form-inline" id="project—form" action="{:url('project/index')}" method="GET" pjax-search="">
    <div class="form-group">
      <label for="exampleInputName2">项目状态</label>
      <select class="form-control" id="exampleInputName2" name="status" style="border-radius:3px;">
        <option value="-3">全部</option>
        {foreach name="PstatusList" item="pstatus" key="k"}
        <option value="{$k}" {if condition=" input('get.status') eq $k" }selected="selected" {/if} >{$pstatus}</option>
        {/foreach}
      </select>
    </div>
    <div class="form-group">
      <label for="type">投标类型</label>
      <select class="form-control" id="type" name="project_type" style="border-radius:3px;">
        <option value="0">全部</option>
        <option value="1" {if condition="$project_type eq 1" }selected="selected" {/if} >金额</option>
        <option value="2" {if condition="$project_type eq 2" }selected="selected" {/if} >份额</option>
      </select>
    </div>
    <div class="form-group">
      <label for="type">关键字</label>
      <input type="text" name="search" class="form-control" style="border-radius:3px;"
             value="{:input('get.search')}" placeholder="{$Think.lang.search}"/>
    </div>
    <div class="form-group">
      <button type="submit" class="btn btn-primary sreachs">搜索</button>
      <button type="button" class="btn btn-primary" onclick="resetForm()">重置</button>
    </div>
  </form>
</div>
<script>
    function resetForm() {
        $('select[name="status"]').val('-3')
        $('select[name="project_type"]').val('0')
        $('input[name="search"]').val('')
        $('#project—form').submit()
    }
</script>
